<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <!--<link rel="stylesheet" href="__CSS__/mui.min.css"/>-->
    <link rel="stylesheet" href="__CSS__/style.css?t=1">
    <link rel="stylesheet" href="__CSS__/index.css">
</head>
<body>

<div class="title_div">
    <h1>长胜平台</h1>
</div>
<div class="lunbo">
    <img src="__IMGS__/dushen.jpg"/>
</div>
<div class="guangbo">
    <ul>
        <li>
            <p><a href="#">私营腾讯分分彩万千位玩法说明<span>更多&nbsp;&nbsp;</span></a></p>
        </li>
        <li>
            <p><a href="#">私营腾讯分分彩万千位玩法说明<span>更多&nbsp;&nbsp;</span></a></p>
        </li>
    </ul>
</div>
<div class="money_div">
    <div class="m_div">
        M
    </div>
    <div class="moneyNum_div">
        <div class="yue">余额：￥<span>{$info.money|default=0}</span></div>
        <div class="shuaxin">
            <a href="javascript:;" id="load">
                <img src="__IMGS__/shuaxin.png"  />

            </a>
        </div>
    </div>
</div>

<div class="list_div">
    <ul>
        <li>
            <a href="#">
                <div><img src="__IMGS__/chongzhi.png"/>
                </div>
                <span>快速充值</span>
            </a>
        </li>
        <li>
            <a href="#">
                <div><img src="__IMGS__/zuijin.png"/>
                </div>
                <span>最近投注</span>
            </a>
        </li>
        <li>
            <a href="mingxi.html">
                <div><img src="__IMGS__/mingxi.png"/>
                </div>
                <span>帐变明细</span>
            </a>
        </li>
        <li>
            <a href="http://wpa.qq.com/msgrd?v=3&uin=510668060&site=qq&menu=yes">
                <div><img src="__IMGS__/kefu.png"/>
                </div>
                <span>在线客服</span>
            </a>
        </li>
        <li>
            <a href="javascript:;" id="pw">
                <div><img src="__IMGS__/locked.png"/>
                </div>
                <span>修改密码</span>
            </a>
        </li>
    </ul>

</div>
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script src="__JS__/mui.min.js"></script>
<script>

    $(document).ready(function(){
        mui.init({
            swipeBack: true //启用右滑关闭功能
        });
        $("#load").click(function(){
            console.log(11);
            location.reload();
        })

        $("#pw").click(function(){
            mui.prompt('确认修改密码','deftext','修改密码',['取消','确认'],
                    function(e){
                        var pw = e.value;
                        if(e.index==1&&pw){
                            mui.ajax({
                                //几个参数需要注意一下
                                type: "POST",//方法类型
                                dataType: "json",//预期服务器返回的数据类型
                                url: "{:url('/index/Home/password',[],true,true)}",//url
                                data: {password:pw},
                                success: function (result) {
                                    console.log(result);//打印服务端返回的数据(调试用)
                                    if (result.code == 0) {
                                        mui.alert(result.msg);
                                    }
                                    if (result.code == 1) {
                                        mui.alert(result.msg);
                                    }
                                },
                                error: function () {
                                    mui.alert('登录异常！');
                                    //alert("异常！");
                                }
                            });
                        }
                    },'div')
            document.querySelector('.mui-popup-input input').type='password'
        });
    });
</script>
</body>
</html>
